<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8" />
		<title></title>
		<script type="text/javascript" src="js/lib/jquery-1.11.1.min.js"></script>
		<script type="text/javascript" src="js/lib/socket.io.js"></script>
		<script type="text/javascript">
			//	var socket=io.connect();
				// console.log(socket)
				navigator.webkitGetUserMedia({
					video: true
				}, function(stream) {
					var v_src=window.webkitURL.createObjectURL(stream);
//					socket.emit("video",v_src);
					document.getElementById('video').src= window.URL.createObjectURL(stream)
				}, function(err) {
					console.log(err);
				});
		</script>
	</head>
	<body>
		<video controls="controls" autoplay="true" id="video"></video>
	</body>

</html>